/**
 * Author:yuiop
 * Date:2022/10/20 23:29
 */
package com.devops.admin.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.devops.admin.config.JSONTypeHandlerPg;
import io.fabric8.kubernetes.api.model.Event;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.time.LocalDateTime;

@Data
@TableName("dos_k8s_resource_event")
@SuperBuilder(toBuilder = true)
@AllArgsConstructor
@NoArgsConstructor
public class DOSK8sResourceEvent extends DOSModel {
    private Integer projectId;
    private Integer releaseId;
    private String clusterName;
    private String namespace;
    private String resourceName;
    private String resourceKind;
    private Integer podType;
    private String message;
    private String reason;
    private LocalDateTime eventTime;
    private Integer pushStatus;
    private String uid;
    private String eventType;
    @TableField(typeHandler = JSONTypeHandlerPg.class)
    private Event eventContent;
}
